<?php 
	$this->breadcrumbs=array(
		Yii::t('parallax','Work'),
	);
	
	$this->pageTitle = Category::model()->generatePageTitle(array_reverse($this->breadcrumbs,'_')).Yii::app()->name;
	
?>
       
        <h1 class="page-title-inner"><span class="section-title">作品展</span> 模板，插件<br /> <span class="accent">精品汇</span></h1>

			<!-- Project Feed Filter -->
         	<ul class="project-feed-filter">
            <li><a href="./portfolio_4_col.html" class="current" data-filter="*">All</a></li>
            <?php foreach($model->children as $item):?>
            <?php 
            
            	$name = $item->cate_name;
            	$pinyin = new PinYin();
            	$short = $pinyin->words2PinYin($name,'utf-8');
            
            ?>
            <li><a href="./portfolio_4_col.html" data-filter=".<?php echo $short;?>"><?php echo $name.$item->cate_id;?></a></li>
            <?php endforeach;?>
        </ul>
        <!-- /Project Feed Filter -->
		
		<!-- Project Feed -->
        <div class="project-feed clearfix">
		<?php //foreach($model->children as $child):?>
<!-- 	
		<h3 style="border-bottom:1px dashed grey;padding-bottom:5px; clear:both;">
			<?php echo CHtml::image('/public/images/folder/flower_folders_0'.rand(0, 9).'.png',$model->cate_name,array('width'=>'20','class'=>'left'));?>
			&nbsp;&nbsp;
			<?php echo CHtml::link($child->cate_name,array('list','id'=>$model->cate_id,'m'=>urlencode($child->cate_name)));?>
			<span class="right">
				<?php echo CHtml::link(Yii::t('common','More'),array('list','id'=>$model->cate_id,'m'=>urlencode($child->cate_name)),array('style'=>'font-size:12px'));?>
			</span>
		</h3>
 -->			
 <hr  class=" clearfix" />
 
 	<?php foreach ($dataProvider as $data):?>
 		<?php $this->renderPartial('_view',array('data'=>$data));?>
 	<?php endforeach;?>

 <?php /**
<!-- 		<?php $media = $child->media;?>
		
		<?php if($media):?>
		<?php $i = 1;?>
		<?php foreach ($media as $data):?>
			<?php //if($i > 5) break; else $i++;?>
			
			<?php $this->renderPartial('_view',array('data'=>$data));?>
		
		<?php endforeach;?>	
		<?php else:?>
		<div style="text-align:center;">
			
			<hr class=" clearfix"/>
			
	        <div class="des">
	        	<span> 此分类还未增加内容……</span>
	    		
	        </div>
	        <hr class=" clearfix" />
		</div>		
		<?php endif;?>
		
		<?php endforeach;?>
*/?>
 		</div>
        <!-- /Project Feed -->
